<?php
include("sqlconnect.php");

//brand input
$bbrand=$_POST['brand'];
$tag=$_POST['tag'];
$cat = $_POST['cat1'];


$query3=("INSERT INTO brand_list(brand_name,brand_tags) VALUES('$bbrand','$tag')");
mysql_query($query3) or die("error in inserting");
$query2=("INSERT INTO category_list(brand_associated) VALUES('$bbrand')");
mysql_query($query2) or die("error in inserting");

$query1=("INSERT INTO category_list(category_name) VALUES('$cat')");
mysql_query($query1) or die("error in inserting");

echo "successfully inserted in table";


header('Location: tab3.php');

?>